<form id="commentForm" method="get" action="">

    <div class="row">
        <ol class="breadcrumb">
            <li><a ui-sref="home.first.print" style="font-size: 15px;">打印测试</a></li>
            <!--<li><a ui-sref="dev.batch" style="font-size:22px;">批量添加</a>-->
        </ol>
    </div>
    <div class="row">
        <div class="am-form-group" ng-show="alert_msg">
            <div class="am-alert am-alert-danger" data-am-alert>
                <button type="button" class="am-close" ng-click="close_alert()">&times;</button>
                <p>{{alert_msg}}</p>
            </div>
        </div>

        <ul class="list-group">
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1">设备 S N：</span>
                <input style="float: left" type="text" name="mName" ng-model="devid.devid" required>
                <span style="width: initial;" class="col-md-offset-1 col-md-1">间隔时间：</span>
                <input type="text" name="mName" ng-model="devid.interval">
            </li>
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1" ng-init="devid.port=9000">服务端口：</span>
                <select name="singleSelect1" id="singleSelect1" ng-model="devid.port" style="width: 175px">
                    <option value="9000">9000</option>
                    <option value="9100">9100</option>
                </select>
            </li>
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1">打印选项：</span>
                <input style="float: left" type="text" name="mode" ng-model="devid.mode" required>
                <span style="width: initial;" class="col-md-offset-1 col-md-1">订单模式：</span>
                <input type="text" name="ordermode" ng-model="devid.ordermode">
            </li>
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1">打印次数：</span>
                <input type="text" name="mAddr" ng-model="devid.num" class="required">
            </li>
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1" ng-init="devid.type=0">订单类型：</span>
                <select name="singleSelect2" id="singleSelect2" ng-model="devid.type" style="width: 175px">
                    <option value="0">短</option>
                    <option value="1">长</option>
                    <option value="2">超长</option>
                </select>
            </li>

            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1">打印内容：</span>
                <textarea style="width: 180px;height: 100px" ng-model="devid.content"></textarea>
            </li>

            <li style="margin-bottom: 20px;margin-top: 20px;height: 50px" class="list-group-item">
                <div class="col-md-offset-2 col-md-1">
                    <button type="button" class="am-btn am-btn-primary am-btn-xs"  ng-click="test_one()">单次测试</button>
                </div>
                <div class="col-md-offset-1 col-md-1">
                    <button type="button" class="am-btn am-btn-primary am-btn-xs" ng-click="test()">开始测试</button>
                </div>
                <div class="col-md-offset-1 col-md-1">
                    <button type="button" class="am-btn am-btn-primary am-btn-xs" ng-disabled="!enable_submit" ng-click="test()">启动/暂停</button>
                </div>
                <div class="col-md-offset-1 col-md-1">
                    <button type="button" class="am-btn am-btn-primary am-btn-xs" ng-disabled="!enable_submit" ng-click="cancel()">结束测试</button>
                </div>
            </li>
            <li class="list-group-item">
                <span style="width: initial;" class="col-md-offset-2 col-md-1">订单编号：</span>
                <input style="float: left" type="text" name="mName" ng-model="devid.printid" >
                <span style="width: initial;" class="col-md-offset-1 col-md-1">订单时间：</span>
                <input style="width: initial;" type="text" ng-model="devid.printtime">
            </li>

        </ul>
        <!--<ul class="list-group" style="margin-top: 10px">
            <span class="col-md-offset-4 col-md-1"></span>
            <div class="devcenterbtn">
                <button type="button" class="btn btn-primary btn-lg btn-block" ng-click="test()">提交</button>
            </div>
        </ul>-->
    </div>
</form>